package main

import "fmt"

func swap(a *int, b *int) {
	*a, *b = *b, *a
}

func swap1(a int, b int) (int, int) {
	return b, a
}

func main() {
	a, b := 3, 4
	swap(&a, &b)
	a, b = b, a
	a, b = swap1(a, b)
	fmt.Println("a=", a, "b=", b)
}
